package tile;

import java.util.ArrayList;

public class Dots extends Tile {
	
	public Dots(Object o) throws Exception {
		super(o);
	}
	
	public Dots(Object o, SUIT s) {
		super(o,s);
	}

	public Object getValue() {
		return value;
	}

	public static boolean isValid(Object o) {
		if(o instanceof Integer) {
			return 1<=((Integer)o).intValue() && ((Integer)o).intValue()<=9;
		}
		return false;
	}

	public static ArrayList<Object> getValidValues() {
		ArrayList<Object> arr = new ArrayList<Object>(9);
		for(int i=0; i < 9; i++) {
			arr.add(i+1);
		}
		
		return arr;
	}

	@Override
	public String print() {
		return value.toString()+" of Dots";
	}

	public Tile clone() {
		Tile t = new Dots(value,suit);
		t.status = status;
		return t;
	}
	
}
